/* @charset "UTF-8";
a {
    color: #c40b00;
}

.wrap {
    max-width: 1000px;
}


/* - 侧边栏 */

.sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    color: rgb(83, 95, 204);
    width: 250px;
    position: fixed;
    overflow: hidden;
    overflow-y: auto;
    background: #022d3a;
}


/* -- 头像 */

.sidebar .avatar {
    width: 160px;
    height: 160px;
    margin: 2em auto;
    background: rgb(2, 2, 2);
    border-radius: 100%;
    border: rgb(250, 250, 250) 5px solid;
    transition: transform 0.5s;
}

.sidebar .avatar:hover {
    transform: rotate(1turn);
}

.sidebar .avatar img {
    border-radius: 100%;
}

.sidebar .nav a {
    color: #fff;
    padding: 1em;
    display: block;
    text-align: center;
    transition: background .3s, box-shadow .3s;
}

.sidebar .nav a:hover {
    background: rgba(0, 0, 0, .2);
}

main {
    margin-left: 250px;
}

@media screen and (max-width: 900px) {
    .sidebar {
        width: inherit;
        position: relative;
    }
    .sidebar .nav {
        background: #356f96;
        flex-direction: row;
        justify-content: center;
    }
    .sidebar .nav a:hover {
        background: none;
        box-shadow: 0 -3px 0 #fff inset;
    }
    main {
        margin-left: 0;
    }
}

@media print {
    .sidebar {
        display: none;
    }
    main {
        margin-left: 0;
    }
}


/* 2 - 正文
-------------------------------- */

main section {
    padding: 5em 0;
    position: relative;
}

@media screen and (max-width: 900px) {
    main section {
        padding: 3em 0;
    }
}

#info {
    background: url(img/bg-1.png) fixed;
}

#skills {
    background: #2c6a83;
}

#works {
    background: url(img/bg-2.png) fixed;
}

#team {
    background: url(img/bg-3.png) fixed;
}

.title {
    margin-bottom: 1em;
}

.title:before {
    float: left;
    margin-right: .5em;
    font-family: "FontAwesome";
}

#info .title:before {
    content: "\f005";
}

#skills .title:before {
    content: "\f19d";
}

#works .title:before {
    content: "\f091";
}

#story .title:before {
    content: "\f0b1";
}

#team .title:before {
    content: "\f024";
}


/* - 技能 */

.skills-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: rgb(245, 196, 60);
    border-radius: 100%;
    box-shadow: 0 5px rgba(0, 0, 0, 0.3);
}

.skills-icon:hover i {
    transform: rotate(1turn);
}

.skills-icon i {
    font-size: 50px;
    line-height: 100px;
    transition: transform 0.5s;
}

.skills-title {
    margin-top: 1.5em;
    text-align: center;
}


/* - 作品 */

.works-item img {
    transition: transform 0.3s;
}

.works-item img:hover {
    transform: scale(1.05, 1.05);
}

.works-item p {
    padding: 1em 0;
    text-align: center;
}


/* - 个人 */

.timeline {
    list-style: none;
    margin-left: 1em;
    padding-left: 1.5em;
    border-left: 2px rgb(95, 193, 212) solid;
}

.timeline li {
    line-height: 1.5em;
    position: relative;
    margin-bottom: 1.5em;
}

.timeline li:hover:before {
    transform: scale(1.2, 1.2);
}

.timeline li:before {
    content: "";
    left: -2.3em;
    width: 1.5em;
    height: 1.5em;
    display: block;
    position: absolute;
    background: #f8bd24;
    border-radius: 100%;
    transition: transform .3s;
}


/* 3 - 页尾
-------------------------------- */

footer {
    color: #fff;
    padding: 1em 0;
    text-align: center;
    background: #022d3a;
}

footer a {
    color: inherit;
}


/* 动效 */

.set_1_btn {
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 45px;
    margin-right: 2em;
    text-align: center;
    padding-left: 35%;
    max-width: 160px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    /* vertical-align: middle; */
    width: 100%;
    margin-bottom: 10px;
}

.set_1_btn:hover {
    text-decoration: none;
}

.Vbtn-1 {
    background: transparent;
    text-align: center;
    float: left;
}

.Vbtn-1 svg {
    height: 45px;
    left: 30%;
    position: absolute;
    top: 0%;
    width: 100%;
}

.Vbtn-1 rect {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-dasharray: 422, 0;
    transition: all 450ms linear 0s;
}

.Vbtn-1:hover {
    background: rgba(225, 51, 45, 0);
    font-weight: 900;
    letter-spacing: 1px;
    transition: all 150ms linear 0s;
}

.Vbtn-1:hover rect {
    stroke-width: 5;
    stroke-dasharray: 15, 310;
    stroke-dashoffset: 48;
    -webkit-transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
    transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}


/* 标题动效 */

.spinner {
    width: 60px;
    height: 60px;
    text-align: center;
    margin-left: 40%;
}

.spinner>div {
    background-color: #3cefff;
    height: 100%;
    width: 6px;
    margin: auto 2px;
    display: inline-block;
    -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
    animation: stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes stretchdelay {
    0%,
    40%,
    100% {
        -webkit-transform: scaleY(0.4);
    }
    20% {
        -webkit-transform: scaleY(1);
    }
}

@keyframes stretchdelay {
    0%,
    40%,
    100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
    }
}

button {
    z-index: 1;
    position: relative;
    font-size: inherit;
    font-family: inherit;
    color: rgb(0, 0, 0);
    padding: 1em 0em;
    outline: none;
    border: none;
    background-color: hsl(0, 0%, 100%);
    overflow: hidden;
    transition: color 0.4s ease-in-out;
    padding-left: -10%;
}

button::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 40%;
    left: 40%;
    width: 2em;
    height: 1em;
    border-radius: 50%;
    background-color: #09535a;
    transform-origin: center;
    transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 0);
    transition: transform 0.45s ease-in-out;
    padding-left: 50%;
}

button:hover {
    cursor: pointer;
    color: #161616;
}

button:hover::before {
    transform: translate3d(-50%, -50%, 0) scale3d(15, 15, 15);
}


/* 方块动效 */

.load-container {
    position: relative;
    width: 100px;
    height: 1px;
    margin: 0 auto;
}

.loader-bounce {
    width: 50px;
    height: 50px;
    margin: auto;
    position: absolute;
    left: 230%;
    right: 0;
    top: 0;
    bottom: 200%;
}

.loader-bounce::before {
    content: '';
    width: 50px;
    height: 5px;
    background: rgb(0, 0, 0);
    opacity: 0.1;
    position: absolute;
    top: 59px;
    left: 0;
    border-radius: 50%;
    animation: shadow 0.5s linear infinite;
}

.loader-bounce::after {
    content: '';
    width: 50px;
    height: 50px;
    background: #ffffff;
    animation: animate 0.5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
}

@keyframes animate {
    17% {
        border-bottom-right-radius: 3px;
    }
    25% {
        transform: translateY(9px) rotate(22.5deg);
    }
    50% {
        transform: translateY(18px) scale(1, 0.9) rotate(45deg);
        border-bottom-right-radius: 40px;
    }
    75% {
        transform: translateY(9px) rotate(67.5deg);
    }
    100% {
        transform: translateY(0) rotate(90deg);
    }
}

@keyframes shadow {
    0%,
    100% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.2, 1);
    }
}


/* 方块动效 */

.load-container1 {
    position: relative;
    width: 100px;
    height: 10px;
    margin: 0 auto;
}

.loader-bounce1 {
    width: 50px;
    height: 50px;
    margin: auto;
    position: absolute;
    left: 640%;
    right: 0;
    top: 0;
    bottom: 380%;
}

.loader-bounce1::before {
    content: '';
    width: 50px;
    height: 5px;
    background: #000;
    opacity: 0.1;
    position: absolute;
    top: 59px;
    left: 0;
    border-radius: 50%;
    animation: shadow 0.5s linear infinite;
}

.loader-bounce1::after {
    content: '';
    width: 50px;
    height: 50px;
    background: #ffffff;
    animation: animate 0.5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
}

@keyframes animate {
    17% {
        border-bottom-right-radius: 3px;
    }
    25% {
        transform: translateY(9px) rotate(22.5deg);
    }
    50% {
        transform: translateY(18px) scale(1, 0.9) rotate(45deg);
        border-bottom-right-radius: 40px;
    }
    75% {
        transform: translateY(9px) rotate(67.5deg);
    }
    100% {
        transform: translateY(0) rotate(90deg);
    }
}

@keyframes shadow {
    0%,
    100% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.2, 1);
    }
}


/* 正方形动效 */

.loader {
    position: relative;
    top: -50%;
    left: 30%;
}

.outer,
.middle,
.inner {
    border: 3px solid transparent;
    border-top-color: #053c41;
    border-right-color: #133b3f;
    border-radius: 100%;
    position: absolute;
    top: 10%;
    left: 50%;
    padding-top: 40%;
}

.outer {
    width: 3.5em;
    height: 3.5em;
    margin-left: -1.75em;
    margin-top: -1.75em;
    animation: spin 2s linear infinite;
}

.middle {
    width: 2.1em;
    height: 2.1em;
    margin-left: -1.05em;
    margin-top: -1.05em;
    animation: spin 1.75s linear reverse infinite;
}

.inner {
    width: 0.8em;
    height: 0.8em;
    margin-left: -0.4em;
    margin-top: -0.4em;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* 文字动效 */

span {
    position: relative;
    z-index: 1;
}

span::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -0.25em;
    right: -28em;
    background-color: hsla(49, 71%, 73%, 0.75);
    transform-origin: center right;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

span:hover::before {
    transform: scaleX(1);
    transform-origin: center left;
}


/* 1文字 */

span {
    position: relative;
}

span::before,
span::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #06373b;
    transform-origin: center top;
    transform: scaleY(0);
    transition: transform 0.5s ease;
    right: -280%;
}

span::before {
    left: -8px;
}

span::after {
    right: -8px;
}

span:hover::before,
span:hover::after {
    transform-origin: center bottom;
    transform: scaleY(1);
}

* {
    margin: 0;
    padding: 0;
}